<LayoutTableSmall>
    <!-- 顶部 -->
    <template slot="top"></template>
    <!-- 其他 -->
    <template slot="other"></template>
    <!-- 搜索 -->
    <template slot="search">
        <el-form :inline="true" label-position="left" label-width="80px" :model="mixinTable_tableSearchData"
            @submit.native.prevent class="demo-form-inline">
            <el-form-item>
                <el-input clearable v-model="mixinTable_tableSearchData.nickName" placeholder="请输入用户昵称"
                    @change="mixinTable_searchData" style="width:250px">
                    <el-button slot="append" icon="el-icon-search" @click="mixinTable_searchData()">
                    </el-button>
                </el-input>
            </el-form-item>
            <el-form-item>
                <el-popover width="430" trigger="click">
                    <div class="optionSearch">
                        <el-form label-position="left" label-width="80px" :model="mixinTable_tableSearchSenior">
                            <div class="box">
                                <el-form-item label="用户昵称">
                                    <el-input v-model="mixinTable_tableSearchData.nickName"></el-input>
                                </el-form-item>

                                <el-form-item label="手机号">
                                    <el-input v-model="mixinTable_tableSearchSenior.mobile.value"></el-input>
                                </el-form-item>

                                <el-form-item label="客户编号">
                                    <el-input v-model="mixinTable_tableSearchSenior.memberCode.value"></el-input>
                                </el-form-item>

                                <el-form-item label="变动时间">
                                    <el-col :span="11">
                                        <el-date-picker placeholder="开始时间"
                                            v-model="mixinTable_tableSearchSenior.createdTimeStartStr.value"
                                            type="datetime" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;">
                                        </el-date-picker>
                                    </el-col>
                                    <el-col class="line" :span="2" style="text-align: center;">-</el-col>
                                    <el-col :span="11">
                                        <el-date-picker placeholder="结束时间"
                                            v-model="mixinTable_tableSearchSenior.createdTimeEndStr.value"
                                            type="datetime" value-format="yyyy-MM-dd HH:mm:ss" style="width: 100%;">
                                        </el-date-picker>
                                    </el-col>
                                </el-form-item>

                                <el-form-item label="变动类型">
                                    <el-radio-group v-model="mixinTable_tableSearchSenior.type.value">
                                        <el-radio :label="null">全部</el-radio>
                                        <el-radio :label="1">入账</el-radio>
                                        <el-radio :label="2">出账</el-radio>
                                    </el-radio-group>
                                </el-form-item>
                            </div>

                            <div class="footer">
                                <el-button @click="mixinTable_searchSeniorReset()">
                                    清空搜索
                                </el-button>
                                <el-button type="primary" @click="mixinTable_searchData()">高级搜索</el-button>
                            </div>


                        </el-form>

                    </div>
                    <el-button slot="reference">高级筛选</el-button>
                </el-popover>
            </el-form-item>
        </el-form>
    </template>
    <!-- 功能 -->
    <template slot="function">
    </template>
    <!-- 表格 -->
    <template slot="table">

        <el-table v-loading="mixinTable_loading" :data="mixinTable_tableData" border style="width: 100%;"
            :ref="mixinPage_vueName+'TableSmall'" height="100%">
            <el-table-column type="index" width="50" :index="mixinTable_indexMethod" align="center" label="#">
            </el-table-column>
            <el-table-column label="头像" width="70px" align="center">
                <template slot-scope="scope">
                    <div class="albumUrl">
                        <imageBox :src="scope.row.icon"></imageBox>
                    </div>
                </template>
            </el-table-column>
            <el-table-column label="客户名称" width="100">
                <template slot-scope="scope">
                    {{scope.row.nickName || '无' }}
                </template>
            </el-table-column>
            <el-table-column label="手机号" width="100">
                <template slot-scope="scope">
                    {{scope.row.mobile || '无' }}
                </template>
            </el-table-column>
            <el-table-column label="交易时间" prop="createdTimeStr">
                <template slot-scope="scope">
                    {{ $vFN.Utils.timestampFormat($vFN.Utils.stringToTimestamp(scope.row.createdTimeStr)) }}
                </template>
            </el-table-column>
            <el-table-column label="订单号" prop="tradeNo">
            </el-table-column>
            <el-table-column label="变动数额">
                <template slot-scope="scope">
                    {{scope.row.type == 1? '+' : '-'}}{{ $vFN.Tools.toMoneyCount(scope.row.changeAmount) }}
                </template>
            </el-table-column>
            <el-table-column label="剩余" prop="usableAmount">
                <template slot-scope="scope">
                    {{ $vFN.Tools.toMoneyCount(scope.row.usableAmount) }}
                </template>
            </el-table-column>

            <el-table-column label="交易类型" prop="tradeTypeName">
            </el-table-column>
        </el-table>

    </template>
    <!-- 表格选项 -->
    <template slot="options">
        <el-button :disabled="mixinTable_selectTableData.length<=0" @click="mixinTable_selectTableDeleteData()">
            删除已选</el-button>
        <el-button :disabled="mixinTable_selectTableData.length<=0"
            @click="mixinTable_clearSelectionChangeTableSmall()">取消选择
        </el-button>
    </template>
    <!-- 分页 -->
    <template slot="page">
        <el-pagination class="paginationStyle" v-if="mixinTable_pageData.total>0" background
            @current-change="mixinTable_pagingData($event)" :current-page="mixinTable_pageData.pageNum"
            :page-size.sync="$vFN.Constants.pageSize" layout="total, prev, pager, next,jumper"
            :total.sync="mixinTable_pageData.total">
        </el-pagination>
    </template>
</LayoutTableSmall>